<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="__PUBLIC__/css/style.css" />
    <!--[if IE 6]>
    <script src="js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->
        
    <script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/menu.js"></script>    
        
	<script type="text/javascript" src="__PUBLIC__/js/select.js"></script>
  <style>
    .m_des{
      margin-top:0;
    }
    .m_right{
      padding-bottom:0;
    }
    table{
        font-size: 12px;
      }

    table td{
        height: 30px;
      }

    .eidt{
      border:1px solid red;
      width: 300px;
      height: 200px;
      position:fixed;
      background:white;
      left:50%;
      top:40%;
      display:none;
      z-index: 10;
    }
    table.mon_tab tr td{
      padding: 0;
    }
  </style> 
    
<title>数码商城个人中心</title>
</head>
<body>  
<include file="./Public/file/top.html" />
<!--End Header End--> 
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
	<div class="m_content">
   		<include file="./Zxshop/Home/View/Member/left.html" />
		<div class="m_right" style="min-height: 410px">
      <h2 style="padding: 20px 0 0 20px;font-weight: lighter;font-size: 16px">用户信息</h2>
        	<div class="m_des" style="margin-top: 10px">
            	<table border="0" style="width:870px; line-height:22px;" cellspacing="0" cellpadding="0">
                  <tr valign="top">
                  <!-- __PUBLIC__/images/user.jpg -->
                    <td width="115"> 
                    <empty name="list['user_info'][picname]">
                        <img id="dddd" src="__PUBLIC__/images/user.jpg" width="90" height="90"/>
                      <else />
                        <img src="__ROOT__/Uploads/user/{$list['user_info'][picname]}" width="90" height="90"/>
                    </empty>
                    </td>
                    <td>
                    	<div class="m_user">{$list['user']['username']}</div>
                        <p>
                            等级：注册用户
                        </p>
                    </td>
                  </tr>
                </table>
            </div>
            <div class="mem_t">账号信息</div>
            <empty name="user">
                <div class="m_des">
                <form action="{:U('home/member/add')}" method="post" enctype="multipart/form-data">
                  <table border="0" style="width:880px;"  cellspacing="0" cellpadding="0">
                  <tr height="45">
                      <td width="80" align="right">头像 &nbsp; &nbsp;</td>
                      <td><input type="file" name="pic" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="45">
                      <td width="80" align="right">昵称 &nbsp; &nbsp;</td>
                      <td><input type="text" name="name" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="45">
                      <td width="80" align="right">性别 &nbsp; &nbsp;</td>
                      <td><input type="radio" name="sex" value="1" />男&nbsp; 
                      <input type="radio" name="sex" value="2" />女　<font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="45">
                      <td width="80" align="right">手机 &nbsp; &nbsp;</td>
                      <td><input type="text" name="phone" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="50">
                      <td>&nbsp;</td>
                      <td><input type="submit" value="确认" class="btn_tj" /></td>
                    </tr>
                  </table>
                </form>
            </div>
              <else />
                <table border="0" class="mon_tab" style="width:260px;margin: 0 0 0 20px" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="40%" align="right">昵称：　</td>
                    <td width="60%"><span style="color:#555555;">{$list['user_info']['name']}</span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">性别：　</td>
                    <td><span style="color:#555555;">{$arr[$list['user_info']['sex']]}</span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">电话：　</td>
                    <td><span style="color:#555555;">{$list['user_info']['phone']}</span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">积分：　</td>
                    <td><span style="color:#555555;">{$list['user_info']['integral']}</span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">等级：　</td>
                    <td><span style="color:#555555;">{$list['user_info']['grade']}</span></td>
                  </tr>
                  <tr>
                  <td width="40%" align="right">注册时间：　</td>
                    <td><span style="color:#555555;">{:date("Y-m-d",$list['user']['addtime'])}</span></td>
                  </tr>
                  <tr height="50">
                      <td colspan="2" align="center">
                        <input type="submit" onclick="mod()" id="btn" value="修改" class="btn_tj" /></td>
                    </tr>
                </table>
            </empty>
        </div>
    </div>
	<!--End 用户中心 End--> 
    <!--Begin Footer Begin -->
    <include file="./Public/file/bottom.html" />
    <!--End Footer End -->    
</div>
<div class="eidt" >
    <form action="{:U('Home/member/add')}" method="post" enctype="multipart/form-data">
      <table style="margin-top: 30px">
          <tr>
            <td>头像：</td>
            <td><input type="file" name="pic"></td>
          </tr>
          <tr>
            <td>昵称：</td>
            <td><input type="text" name="name" value="{$list['user_info']['name']}"></td>
          </tr>
          <tr>
            <td>性别：</td>
            <td>
              <input type="radio" name="sex" value="1" 
              {$list['user_info']['sex']==1?"checked":""}>男
              <input type="radio" name="sex" value="2"
              {$list['user_info']['sex']==2?"checked":""}>女
            </td>
          </tr>
      </table>
      <input type="submit" value="保存" style="margin-left: 150px">
      <input class="cancel" type="button" value="取消">
    </form>
</div>
</body>
<script>
  var jq = jQuery.noConflict();
  // alert({$list['user_info']['grade']});
  function mod(){
      jq('<div class="blank"></div>').css({
            'width':jq(window).width(),
            'height':jq(window).height(),
            'background':'rgba(0,0,0,0.3)',
            'position':'fixed',
            'left':0,
            'top':0,
          }).appendTo(jq(document.body));
          init();
    }
      function init(){
        jq('.eidt').css({
          'margin-left':function(){
            return -(Math.ceil(jq(this).width() / 2));
          },
          'margin-top':function(){
            return -(Math.ceil(jq(this).height() / 2));
          },
          'display':'block',
        }).appendTo($(document.body));
      }

      jq('.cancel').click(function(){
          jq('.eidt').css('display','none');
          jq('.blank').remove();
      });
  
</script>
<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>
